﻿@using Pyramid.Models
@model IEnumerable<CustomerHealthManageRecord>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="@Url.Action("CreateHealthManageRecord", new { masterId = ViewBag.MasterId })" target="dialog" mask="true" title="添加顾客健康管理记录" width="810" height="480" resizable="false"><span>添加</span></a></li>
			<li><a class="edit" href="@Url.Action("EditHealthManageRecord", new {id = "{id}"})" target="dialog" mask="true" title="编辑顾客健康管理记录" width="810" height="480" resizable="false"><span>修改</span></a></li>
			<li><a class="delete" href="@Url.Action("DeleteHealthManageRecord", new { id = "{id}", masterId = ViewBag.MasterId })" target="ajaxTodo" title="确定要删除吗？" callback="refreshAjaxDone"><span>删除</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layouth="90">
		<thead>
			<tr>
				<th width="120">@Html.DisplayNameFor(m => m.DateTime)</th>
				<th width="200">@Html.DisplayNameFor(m => m.Region)</th>
				<th>@Html.DisplayNameFor(m => m.TestingProgram)</th>
				<th>@Html.DisplayNameFor(m => m.Remark)</th>
				<th width="200">@Html.DisplayNameFor(m => m.Expert)</th>
			</tr>
		</thead>
		<tbody>
			@foreach (var s in Model)
			{
				<tr target="id" rel="@s.Id">
					<td>@s.DateTime.ToString("yyyy-MM-dd")</td>
					<td>@s.Region</td>
					<td>@s.TestingProgram</td>
					<td>@s.Remark</td>
					<td>@s.Expert</td>
				</tr>
			}
		</tbody>
	</table>
</div>
